package behavioralPattern.observer.example02;

import lombok.Data;

import java.util.Date;

/**
 * 开奖结果封装
 */
@Data
public class LotteryResult {

    private String uid;

    private String msg;

    private Date dateTime;

    public LotteryResult(String uid, String msg, Date dateTime) {
        this.uid = uid;
        this.msg = msg;
        this.dateTime = dateTime;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    @Override
    public String toString() {
        return "LotteryResult{" +
                "uid='" + uid + '\'' +
                ", msg='" + msg + '\'' +
                ", dateTime=" + dateTime +
                '}';
    }
}
